package com.lanxin.hr.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lanxin.hr.entity.ZzAdjustment;
import com.lanxin.hr.entity.ZzEmployee;
import com.lanxin.hr.vo.EmpVo;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cyh
 * @since 2025-07-16
 */
public interface ZzEmployeeMapper extends BaseMapper<ZzEmployee> {

    //根据条件分页查询员工
    public IPage<EmpVo> listEmpVo(Page<EmpVo> page, @Param("employee") ZzEmployee employee);

    //根据id查询员工信息
    public EmpVo getEmpVoByEid(Integer eid);

    //更新员工状态
    public int updateEmpStatus(Map<String,Object> map);

    //修改员工的部门和职位,即调动员工
    public int adjustEmp(ZzAdjustment adjustment);
}
